package com.asset.salesforce.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.ActionTextValueDaoImpl;
import com.asset.salesforce.domain.ActionTextValue;

@Service
@Transactional(readOnly=true)
public class ActionTextValueService {

	@Autowired
	private ActionTextValueDaoImpl actionTextValueDaoImpl;
	
	@Transactional(readOnly = false)
	public void addActionTextValue(ActionTextValue actionTextValue){
		actionTextValueDaoImpl.add(actionTextValue);
	}
	@Transactional(readOnly = true)
	public ActionTextValue getActionTextValueById(ActionTextValue actionTextValue,Integer id){
		return actionTextValueDaoImpl.getById(id,actionTextValue);
	}
	@Transactional(readOnly = true)
	public List<ActionTextValue> getActionTextValues(ActionTextValue actionTextValue){
		return actionTextValueDaoImpl.getAll(actionTextValue);
	}
}
